{% extends 'base_with_top_menu.html' %}

{% block header %}User rentals{% endblock %}

{% block content %}
<b>
    {{ first_name }} {{ last_name }}
    <br>
    {{ email }}
</b>
<ul>
{% for rental in rentals %}
<li style = 'margin-bottom: 0.5em'><b>{{ rental.title }}</b> {% block return %}{% endblock %}
    <ul>
    <li>Authors: {{ rental.authors|join:', ' }}</li>
    <li>From: {{ rental.from_date }}</li>
    <li>To: {{ rental.to_date }}</li>
    <li>Shelf mark: {{ rental.shelf_mark }}</li>
    </ul>
</li>
{% empty %}
<b>No rentals.</b>
{% endfor %}
{% endblock %}